<template>
  <div>
    <h1>{{ fromChild }}</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      fromChild: "",
    };
  },
  methods: {},
  created() {
    this.$bus.$on("postHello", (val) => {
      console.log(val);
      this.fromChild = val;
    });
  },
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
